import React from "react";
import style from "./PublicCard.module.css";
const { card, title, introduce, time, main } = style;
const PublicCard = (props) => {
  return (
    <div>
      <div className={card}>
        <h2 className={title}>{props.children[0]}</h2>
        <div className={main}>
          <div className={introduce}>{props.children[1]}</div>
          {props.children[2]}
        </div>
        <div className={time}>{props.children[3]}</div>
      </div>
    </div>
  );
};



//引入模板
{/* <PublicCard>
<div>小店标题2</div>
<div>小店动态简介2</div>
<img src="https://img0.baidu.com/it/u=4066896757,2689749700&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500" alt="" />
<div>2022-4-12</div>
</PublicCard> */}

export default PublicCard;
